// type CalcFn = (n1: number, n2: number) => number
// 可调用的接口
interface CalcFn {
    (n1: number, n2: number): number
}

const add: CalcFn = (num1, num2) => {
    return num1 + num2
}

// 建议使用type